package com.irdstudio.apicenter.console.service.authenticate;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.irdstudio.apicenter.console.dm.AppAdRoll;
import com.irdstudio.apicenter.console.dm.AppAdRollDao;

@Service(value = "AppAdRollService")
public class AppAdRollService {
	
	@Autowired
	private AppAdRollDao appAdRollDao;
	
	public int insertOne(AppAdRoll appAdRoll) throws SQLException, ClassNotFoundException {	
		return appAdRollDao.save(appAdRoll);
	}

	public AppAdRoll queryAppTradePrivate(String recordKey) throws SQLException{
		return appAdRollDao.queryWithKeys(recordKey);
	}
	
	public int update(AppAdRoll appAdRoll) throws SQLException, ClassNotFoundException {	
		return appAdRollDao.update(appAdRoll);
	}
	public int delete(AppAdRoll appAdRoll) throws SQLException, ClassNotFoundException {	
		return appAdRollDao.delete(appAdRoll);
	}
	
	
	
	
}
